package com.group.service.impl;

import com.group.mapper.UserInformationMapper;
import com.group.service.UserInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.entity.ImgDo;
import pojo.qo.UserInformation;

@Service
public class UserInformationServiceImpl implements UserInformationService {

    @Autowired
    private UserInformationMapper userInformationMapper;

    @Override
    public UserInformation findUserById(Long userId) {
        return userInformationMapper.findUserById(userId);
    }

    @Override
    public int updataUser(UserInformation user) {
        return userInformationMapper.updataUser(user);
    }

    @Override
    public int uploudImg(UserInformation user) {
        return userInformationMapper.uploudImg(user);

    }

    @Override
    public int saveDateToImgPath(ImgDo imgDo) {
        int i = userInformationMapper.saveDateToImgPath(imgDo);
        return i;
    }


}
